package br.com.busgpsapp.activities;

import android.os.Bundle;
import br.com.busgpsapp.R;
import br.com.busgpsapp.util.CustomActionBar;

import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.MenuItem;

public class AboutActvity extends SherlockActivity
{

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        setContentView(R.layout.layout_about_app);
        CustomActionBar.updateCustomActionBar(getSupportActionBar(), "Sobre o App");
        super.onCreate(savedInstanceState);
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item)
    {
        switch (item.getItemId())
        {
        case android.R.id.home:
            finish();
        }
        return (super.onOptionsItemSelected(item));
    }

    @Override
    public void onBackPressed()
    {
        finish();
        super.onBackPressed();
    }
}
